
#include"product.h"
#include"factory.h"
#include<iostream>
using namespace std;
factory::factory() {

}

factory::~factory() {

}

concreteFactory::concreteFactory() {
    cout<<"concreteFactory..."<<endl;
}

concreteFactory::~concreteFactory() {

}

product* concreteFactory::createProduct(int num) {
    if(num == 1) {
        return new concreteProduct1();
    }else if(num == 2) return new concreteProduct2();
    //return createProduct();
}